body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* כדי למנוע היסט לצדדים */
}


.container {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 15px;
    position: relative; /* כדי שנוכל להשתמש ב-blur-background כילד של container */
}

.profile-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ccc;
    cursor: pointer;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 1.25s ease;
    z-index: 1;
}

/* אפקט הגידול וההזזה לכיוון מרכז הדף */
.post:hover {
    transform: scale(1.2) translateX(-10%) translateY(-10%);
    z-index: 10;
}

/* רקע מטושטש */
.blur-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 5;
    pointer-events: none;
    filter: blur(0px); /* ברירת מחדל - אין מטושטש */
    transition: filter 1.25s ease;
    opacity: 0; /* ברירת מחדל - בלתי נראה */
    transition: opacity 1.25s ease, filter 1.25s ease;
}

/* הפעלת המטושטש רק כאשר הפוסט נמצא במצב hover */
.post:hover + .blur-background {
    filter: blur(5px);
    opacity: 1; /* הופך את הרקע המטושטש לגלוי */
}

.post img {
    width: 100%;
    max-height: 320px;
    display: block;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post img:hover {
    transform: scale(1.05);
}

.post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    color: white;
    padding: 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.post h2 {
    margin: 0;
    font-size: 1.5em;
    color: #fff;
    transition: font-size 0.3s ease, filter 0.3s ease;
}

.post h2 a {
    text-decoration: none;
    color: inherit;
}

.post h2:hover {
    font-size: 1.7em;
    filter: blur(2px);
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(3, 1fr); /* 3 עמודות בטאבלטים */
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr); /* 2 עמודות בסמארטפונים גדולים */
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr; /* עמודה אחת בטלפונים קטנים */
    }
}

